PROJECT(libsqlite)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

SET(SRC_LIST sqlite3.c aes.c crypt.c padlock.c sha2.c)
SET(CMAKE_C_FLAGS  "-DSQLITE_HAS_CODEC=1")

ADD_LIBRARY(sqlite STATIC ${SRC_LIST})
ADD_EXECUTABLE(sqlite3 ${SRC_LIST} shell.c)
TARGET_LINK_LIBRARIES(sqlite syscore dl)
TARGET_LINK_LIBRARIES(sqlite3 dl syscore)
